package com.wangjw.springbootdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@MapperScan(basePackages = "com.wangjw.springbootdemo.mapper") // 扫描Mybatis mapper包路径
@ComponentScan(basePackages = {"com.wangjw.springbootdemo", "org.n3r.idworker"}) // 包扫描，包含一些工具类
@EnableScheduling // 开启定时任务
@EnableAsync // 开启异步调用方法
public class SpringBootDemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringBootDemoApplication.class, args);
	}
}
